import java.util.Date;


public class Block {
	long tag;
	boolean dirty;
	
	Date timeLastUsed;
	
	Block()
	{
		tag = -1;
		this.updateLastUsed();
	}
	Block(long t)
	{
		tag = t;
		this.updateLastUsed();
	}
	boolean setTag(long newTag)
	{
		tag= newTag;
		return true;
	}
	void setDirty(boolean val)
	{
		dirty = val;
	}
	long getTag()
	{
		return tag;
	}
	void updateLastUsed()
	{
		timeLastUsed = new Date();
	}
	Date getDate()
	{
		return timeLastUsed;
	}
	
}
